package com.example.wexcle.demos.web.controller;

import com.example.wexcle.demos.web.R;
import com.example.wexcle.demos.web.service.TydkFile;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/file")
public class SelectFilexController {
    @Autowired
    private TydkFile tydkFile;
    @ApiOperation("查询上传excel文件的相关信息")
    @PostMapping("/selectall")
    public R selectall(){
        return R.ok().data("list",tydkFile.selectall().getData().get("list"));
    }
}
